const state = {
    num:1
}
const getters = {}
const mutations = {
    changeNum(state,payload){
        state.num += payload.num
    }
}
const actions = {
    changeNumAwait({commit},obj){
        setTimeout(()=>{
            commit('changeNum',obj)
        },1000)
    }
}

export default {
    namespaced:true,
    state,
    getters,
    mutations,
    actions
}